// 导入axios模块
import axios from '@/utils/axios'

// 获取用户个信息
export const userProfile = () => {
  return axios({
    method: 'GET',
    url: '/app/v1_0/user/profile'
  })
}

// 修改用户个人信息
export const editUserProfile = data => {
  return axios({
    method: 'PATCH',
    url: '/app/v1_0/user/profile',
    data
  })
}

// 上传头像
export const uploadAvatar = data => {
  return axios({
    method: 'PATCH',
    url: '/app/v1_0/user/photo',
    data
  })
}
